package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.BuyBean;
import com.project.service.IBuyDetailService;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IBuyDetailMapper extends BaseMapper<IBuyDetailService> {
    /**
     * 添加购买明细
     * @param orderId 订单id
     * @param buyList 购物车集合
     */
    void add(@Param("orderId") Integer orderId, @Param("buyList") List<BuyBean> buyList);
}
